package entity

type Prepaid struct {
	Id                int64  `gorm:"column:id;primary_key" json:"id"`
	PaymentId         int64  `gorm:"column:payment_id;type:bigint;index;comment:fee_plan_payment_order表主键ID" json:"payment_id"`
	EbikeId           int64  `gorm:"column:ebike_id;type:bigint;index;comment:设备ID" json:"ebike_id"`
	Sn                string `gorm:"column:sn;type:varchar(32);comment:设备SN" json:"sn"`
	Iccid             string `gorm:"column:iccid;type:varchar(32);comment:设备Iccid" json:"iccid"`
	EffectiveDate     string `gorm:"column:effective_date;type:varchar(32);comment:流量卡预生效日期" json:"effective_date"`
	ExpiredDate       string `gorm:"column:expired_date;type:varchar(32);comment:流量卡预失效日期" json:"expired_date"`
	Status            int    `gorm:"column:status;type:integer" json:"status"`
	Source            int    `gorm:"column:source;type:integer" json:"source"`
	EffectiveDateUnix int64  `gorm:"column:effective_date_unix;type:bigint;index;comment:流量卡预生效日期(unix时间戳)" json:"effective_date_unix"`
	ExpiredDateUnix   int64  `gorm:"column:expired_date_unix;type:bigint;index;comment:流量卡预失效日期(unix时间戳)" json:"expired_date_unix"`
	CreatedAt         int64  `gorm:"column:created_at;type:bigint" json:"created_at"`
	UpdatedAt         int64  `gorm:"column:updated_at;type:bigint" json:"updated_at"`
}

func (p *Prepaid) TableName() string {
	return "prepaid"
}
